package com.tentcent.yumeko;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(value = "DiscoverProducerService", //调用方application。name名称
        fallback = ProducerServiceFallback.class)
public interface ProducerService {
    /**
     * Get sum of two value.
     * @param value1 value 1
     * @param value2 value 2
     * @return sum
     */
    @GetMapping("/producer/sum")
    int sum(@RequestParam("value1") int value1, @RequestParam("value2") int value2);
}
